import java.util.Arrays;

public class hw6 {
    public static void main(String[] args) {
        //7、int[] arr11 = {1, 2, 3, 4,5,6,7,8,9,0,3,2,4,5,6,7,4,32,2,1,1,4,6,3}; 数组去重

        int[] arr11 ={1,2,3,4,5,6,7,8,9,0,3,2,4,5,6,7,4,32,2,1,1,4,6,3};
        System.out.println("去重前数组："+Arrays.toString(arr11));
        for(int i=0;i<arr11.length;i++){
            for(int j=i+1;j<arr11.length;j++){
                if(arr11[i]==arr11[j]){
                    arr11[j]=0;
                }
            }
            }

        System.out.println("去重后数组"+Arrays.toString(arr11));
    }}




